#ifndef __SPEC_H_
#define __SPEC_H_

#include "stdio.h"
//#include "string.h"
//#include "stdlib.h"


#ifdef SPEC_PRINTF
    #define LOG_INFO(...)			printf(__VA_ARGS__)
#else
	#define LOG_INFO(...)
#endif

extern unsigned char g_C3_Data[0x9A];
extern unsigned char g_EnfahceFlag;

typedef struct
{
	int year;
	int month;
	int day;
	int hour;
	int minute;
	int sec;
}NET_TIMER;

extern NET_TIMER g_sNetTimer;


#define MIIO_OK					(0)		/* There is no error		*/
#define MIIO_ERROR				(-1)	/* A generic error happens	*/
#define MIIO_ERROR_TIMEOUT		(-2)	/* Timed out				*/
#define MIIO_ERROR_FULL			(-3)	/* The resource is full		*/
#define MIIO_ERROR_EMPTY		(-4)	/* The resource is empty	*/
#define MIIO_ERROR_NOMEM		(-5)	/* No memory				*/
#define MIIO_ERROR_NOSYS		(-6)	/* No system				*/
#define MIIO_ERROR_BUSY			(-7)	/* Busy						*/
#define MIIO_ERROR_TRYOUT		(-8)	/* Try enough times			*/
#define MIIO_ERROR_NOTFOUND		(-9)
#define MIIO_ERROR_PARAM		(-10)
#define MIIO_ERROR_SIZE			(-11)
#define MIIO_ERROR_NOTREADY		(-12)

int MiioUartHandler(char* buff,unsigned short buff_sz);

#endif





